﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CorporateGym.DAL;

namespace BLL.Entities
{
    public class GymVisit
    {
        public int TraineeId { get; set; }
        public DateTime Start { get; set; }

        public static GymVisit CreateFromRow(CorporateGymDB.TraineeVisitRow i_Row)
        {
            return new GymVisit
            {
                TraineeId = i_Row.TraineeId,
                Start = i_Row.StratingHour
            };
        }
    }
}
